package com.goodboys.service;

import com.goodboys.base.entity.BaseReqBean;
import com.goodboys.base.service.BaseService;
import com.goodboys.entity.User;
import org.springframework.stereotype.Service;
import org.springframework.web.multipart.MultipartFile;

import java.util.Map;

/**
 * Created by CJ on 2018-05-19.
 */
public interface UserService extends BaseService<User>{

    Map register(User user) throws Exception;

    Map login(User user) throws  Exception;

    Map updateUser(User user, MultipartFile imgFile) throws Exception;

    Map nearUsers(BaseReqBean baseReqBean) throws  Exception;

    //判断手机号是否已存在
    Map isExist(String phone) throws  Exception;

    //用户退出
    Map logout(String id,String token) throws  Exception;

    Map dynamicLogin(String code) throws  Exception;
}
